package com.hava.contentsale.service.impl;

import com.hava.contentsale.dao.UserVODao;
import com.hava.contentsale.meta.UserVO;
import com.hava.contentsale.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by yanfa on 2016/11/15.
 * 通过用户名密码查询是否正确，通过UserVO获取登录错误的提示。
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserVODao userVODao;

    @Override
    public UserVO getUser(String username, String password) {
        return this.userVODao.findByUsername(username,password);
    }
}